package modelo;

public class Vector {
	int x;
	int y;
	public Vector(int posX,int posY){
		x = posX;
		y = posY;
	}
	public int getX(){
		return x;
	}
	
	public int getY(){
		return y;
	}
	
	public void setX(int posX){
		x = posX;
	}	
	
	public void setY(int posY){
		y = posY;
	}
	
	public String toString(){
		if(y>0){
			return "Arriba";
		}
		if(y<0){
			return "Abajo";
		}
		if(x>0){
			return "Derecha";
		}
		if(x<0){
			return "Izquierda";
		}
		return "";
	}
}
